package com.linglan.common.config;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.linglan.common.utils.PrimaryKeyUtil;
import org.springframework.stereotype.Component;

@Component
public class CustomIdGenerator implements IdentifierGenerator {
    @Override
    public Long nextId(Object entity) {
        return PrimaryKeyUtil.getId();
    }
}